function onloddiv(){
	(function () {
		var userAgent = navigator.userAgent.toLowerCase();
		var isIE = /msie/.test(userAgent);
		function isIE6() {
			if (isIE && userAgent.match(/(?:msie\s)([\d.]+)/)[1] == "6.0") {
				return true;
			}
		}
		function setOpacity(cs, level) {
			if (isIE) {
				cs.filter = "alpha(opacity=" + level + ")";
			} else {
				cs.opacity = level / 100;
			}
		}
		function addEvent(obj, type, func) {
			if (document.all) {
				obj.attachEvent("on" + type, func);
			} else {
				obj.addEventListener(type, func, false);
			}
		}
		var cover = window.cover = {c:null, set:function (level, color) {
			if (!this.c) {
				this.c = document.createElement("div");
				var c = this.c;
				var cs = c.style;
				var rootElem = document.documentElement;
				cs.left = "0px";
				cs.top = "0px";
				cs.backgroundColor = color;
				cs.position = "absolute";
				cs.zIndex = 9000;
				cs.display = "none";
				if (isIE6()) {
					cs.overflow = "hidden";
					c.innerHTML = "<iframe style=\"filter:alpha(opacity=0);-moz-opacity:0;top:0px;left:0px\" />";
				}
				setOpacity(cs, level);
				document.body.appendChild(c);
				addEvent(window, "resize", function () {
					if (cs.display == "block") {
						var cWidth = rootElem.clientWidth, cHeight = rootElem.clientHeight;
						cs.width = cWidth + "px";
						cs.height = cHeight + "px";
						setTimeout(function () {
							var sWidth = rootElem.scrollWidth, sHeight = rootElem.scrollHeight;
							if (sWidth > cWidth) {
								cs.width = sWidth + "px";
							}
							if (sHeight > cHeight) {
								cs.height = sHeight + "px";
							}
						}, 0);
					}
				});
			}
		}, show:function () {
			var c = this.c;
			if (c) {
				var cs = c.style;
				var rootElem = document.documentElement;
				var sWidth = rootElem.scrollWidth, sHeight = rootElem.scrollHeight, cWidth = rootElem.clientWidth, cHeight = rootElem.clientHeight;
				cs.width = rootElem.scrollWidth + "px";
				cs.height = rootElem.scrollHeight + "px";
				if (sWidth < cWidth) {
					cs.width = cWidth + "px";
				}
				if (sHeight < cHeight) {
					cs.height = cHeight + "px";
				}
				if (isIE6()) {
					var ifs = c.firstChild.style;
					ifs.width = cs.width;
					ifs.height = cs.height;
				}
				cs.display = "block";
			}
		}, hide:function () {
			if (this.c) {
				this.c.style.display = "none";
			}
		}, remove:function () {
			document.body.removeChild(this.c);
			this.c = null;
		}};
	})();
	cover.set(30, "#000000");
}


function openCover(){
	cover.show();
}
function closeCover(){
	cover.hide();
}